package com.ossjk.oa.advisory.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 子项目
 * </p>
 *
 * @author chair
 * @since 2019-02-19
 */
public class Subproject extends BaseEntity<Subproject> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId("id")
	private String id;
	/**
	 * 项目id
	 */
	@TableField("pid")
	private String pid;
	/**
	 * 专业id
	 */
	@TableField("did")
	private String did;
	/**
	 * 名称
	 */
	@TableField("name")
	private String name;
	/**
	 * 学年
	 */
	@TableField("years")
	@JSONField(format = "yyyy")
	private BigDecimal years;
	/**
	 * 备注
	 */
	@TableField("remarks")
	private String remarks;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getDid() {
		return did;
	}

	public void setDid(String did) {
		this.did = did;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public BigDecimal getYears() {
		return years;
	}

	public void setYears(BigDecimal years) {
		this.years = years;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Subproject{" + ", id=" + id + ", pid=" + pid + ", did=" + did + ", name=" + name + ", years=" + years + ", remarks=" + remarks + "}";
	}
}
